<h1>Listing messages</h1>

<table>
  <tr>
  </tr>
  
<% for message in @messages %>
  <tr>
    <td><%= link_to 'Show', message_path(message) %></td>
    <td><%= link_to 'Edit', edit_message_path(message) %></td>
    <td><%= link_to 'Destroy', message_path(message), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New message', new_message_path %>